/*
 * @Author: your name
 * @Date: 2023-02-10 13:26:58
 * @LastEditTime: 2023-02-10 13:39:22
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \aroperation-web\src\api\isMobilePhone.js
 */
export function isMobilePhone () {
  const ua = navigator.userAgent.toLowerCase();
  const t1 = /android|webos|iphone|ipod|blackberry|iemobile|opera mini/i.test(
    ua
  );
  // const t2 = !ua.match("iphone") && navigator.maxTouchPoints > 1;
  // console.log(t1);
  return t1;
}